package top.someapp.applib.kits;

/**
 * @author zwz
 * Created on 2020-06-10
 */
public class Arrays {

    public static final Object[] EMPTY_OBJECTS = {};
    public static final boolean[] EMPTY_BOOLEANS = {};
    public static final char[] EMPTY_CHARS = {};
    public static final byte[] EMPTY_BYTES = {};
    public static final short[] EMPTY_SHORTS = {};
    public static final int[] EMPTY_INTS = {};
    public static final long[] EMPTY_LONGS = {};
    public static final float[] EMPTY_FLOATS = {};
    public static final double[] EMPTY_DOUBLES = {};
    public static final String[] EMPTY_STRINGS = {};

    public static Object[] oneObjectArray(Object value) {
        return new Object[]{value};
    }

    public static boolean[] oneBooleanArray(boolean value) {
        return new boolean[]{value};
    }
}
